From e050e9784befb67c31cb87b5767cc8d715883888 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Mon, 30 Apr 2007 15:06:34 +0100 Subject: [PATCH] Handle ISO_Level3_Shift keysym as AltGr in ioemu/vncfb. The modern (xkb) way of mapping the AltGr key (113) seems to be using the ISO_Level3_Shift keysym (0xFE03) instead of the obsolete Mode_switch keysym (0xFF7E). This patch let the "keysym to scancode" translator handle the ISO_Level3_Shift correctly, enabling the use of characters like ~#{[|`\^@]} on a french keyboard. From: Cedric Schieli Signed-off-by: Keir Fraser --- tools/ioemu/keymaps/modifiers | 1 + tools/ioemu/vnc_keysym.h | 1 + 2 files changed, 2 insertions(+) diff --git a/tools/ioemu/keymaps/modifiers b/tools/ioemu/keymaps/modifiers index d8b019f040..350cb798d7 100644 --- a/tools/ioemu/keymaps/modifiers +++ b/tools/ioemu/keymaps/modifiers @@ -3,6 +3,7 @@ Shift_L 0x2a Alt_R 0xb8 Mode_switch 0xb8 +ISO_Level3_Switch 0xb8 Alt_L 0x38 Control_R 0x9d diff --git a/tools/ioemu/vnc_keysym.h b/tools/ioemu/vnc_keysym.h index 5c47104442..9c6c05f8cf 100644 --- a/tools/ioemu/vnc_keysym.h +++ b/tools/ioemu/vnc_keysym.h @@ -215,6 +215,7 @@ static name2keysym_t name2keysym[]={ {"Shift_R", 0xffe2}, /* XK_Shift_R */ {"Super_L", 0xffeb}, /* XK_Super_L */ {"Super_R", 0xffec}, /* XK_Super_R */ +{"ISO_Level3_Shift", 0xfe03}, /* XK_ISO_Level3_Shift */ /* special keys */ {"BackSpace", 0xff08}, /* XK_BackSpace */ -- 2.30.2